//
//  OnlineMovieModel.m
//  UI_19_Homework
//
//  Created by dllo on 16/1/29.
//  Copyright © 2016年 LZB. All rights reserved.
//

#import "OnlineMovieModel.h"
#import "MovieDetailModel.h"
@implementation OnlineMovieModel

- (instancetype)initWithDataSource:(NSDictionary *)dataSource {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dataSource];
        
        NSMutableArray *array = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *dic in self.entries) {
            MovieDetailModel *detailMode = [[MovieDetailModel alloc] init];
            [detailMode setValuesForKeysWithDictionary:dic];
            [array addObject:detailMode];
        }
        self.entries = [NSArray arrayWithArray:array];
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
@end
